﻿using System;
using System.Collections.Generic;
using System.Text;
using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;

namespace DAL
{
   public class MenuInfoDAL : BaseDeleteDAL<MenuInfo>, IMenuInfoDAL
    {
        private UnmanContexts _dbContext;
        public MenuInfoDAL(UnmanContexts dbContext) : base(dbContext)
        {
            _dbContext = dbContext;
        }

        /// <summary>
        /// 获取菜单表所有数据
        /// </summary>
        /// <returns></returns>
        public DbSet<MenuInfo> GetMenuInfos()
        {
            return _dbContext.MenuInfo;
        }
    
    }
}
